package com.sky.repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sky.dto.ShoppingCartDTO;
import com.sky.po.ShoppingCartPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Content:
 * @Author: Asen
 * @Date: 2023/9/4 21:16
 */
@Mapper
public interface ShoppingCartRepository extends BaseMapper<ShoppingCartPO> {
    /**
     * 根据条件查询购物车商品
     * @param source
     * @param currentId
     * @return
     */
    ShoppingCartPO querybyCondition(@Param("source") ShoppingCartDTO source,@Param("userId") Long currentId);
}
